USE DeltaFlex
GO
IF ( OBJECT_ID('dbo.sp_InsertarFactura') IS NOT NULL ) 
   DROP PROCEDURE dbo.sp_InsertarFactura
GO

CREATE PROCEDURE sp_InsertarFactura
				@IDFACTURA int,
				@IDCLIENT int,
				@DATA date,
				@VENCIMENT date,
				@TOTAL decimal(8,4)
								
AS
BEGIN
	SET NOCOUNT ON

	INSERT INTO dbo.FACTURA(IDFACTURA,IDCLIENT,DATA,VENCIMENT,TOTAL)
					VALUES (@IDFACTURA,@IDCLIENT,@DATA,@VENCIMENT,@TOTAL)
	END
GO

